package com.bxfy.rabbit.producer.constant;

/**
 * 标记消息发送的状态
 */

public enum BrokerMessageStatus {

    SENDING("0"),

    SEND_OK("1"),

    SEND_FAIL("2"),

    //这个字段代表可能是OS上的异常或者磁盘满了,pageCache变为busy状态,我们需要等待重试
    SEND_FAIL_A_MOMENT("3");

    public String getCode() {
        return code;
    }

    private String code;

    private BrokerMessageStatus(String code) {
        this.code = code;
    }
}
